#include <stdio.h>


int main(){
	int a = 1, b = 2;
	void test(int *a, int *b);
	test(&a, &b);
	
	printf("a = %d\tb = %d\n", a, b);
	
	return 0;
}

void test(int *a, int *b){
	int temp;
	temp = *a;
	*a = *b;
	*b = temp;
	printf("a = %d\tb = %d\n", *a, *b);
}
